<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>huimeng</title>
    <script>
        window.onkeypress = function (e) {
            alert(e.keyCode);
        }
    </script>
</head>

<body>


</body>

</html>